home *** CD-ROM | disk | FTP | other *** search
- diff -c xblockbuster1.02/CHANGES xblockbuster1.03/CHANGES
- *** xblockbuster1.02/CHANGES Fri Apr 2 20:44:44 1993
- --- xblockbuster1.03/CHANGES Sat Apr 17 23:07:02 1993
- ***************
- *** 1,3 ****
- --- 1,10 ----
- + Changes from v1.02 to v1.03
- +
- + file locking implemented for the scorefile. By Gerald Vogt <vogt@isa.de>
- + this adds the files lock.c and lock.h
- +
- + added S_ISDIR macro to xblockbuster.c for Mips machines
- +
- Changes from v1.01 to v1.02
-
- rand and srand are now used as defaults on HP machines.
- diff -c xblockbuster1.02/Imakefile xblockbuster1.03/Imakefile
- *** xblockbuster1.02/Imakefile Fri Apr 2 23:13:07 1993
- --- xblockbuster1.03/Imakefile Sat Apr 17 20:21:14 1993
- ***************
- *** 17,22 ****
- --- 17,23 ----
- #ifndef StageDir
- #define StageDir $(LIBDIR)/xblockbuster
- #endif
- + CFLAGS += -Wall
-
- STAGEDIR = StageDir
-
- ***************
- *** 25,34 ****
- DEFINES = -DSTAGEDIR=\"$(STAGEDIR)\"
- DEPLIBS = $(DEPXLIB)
- LOCAL_LIBRARIES = $(XLIB)
- ! SRCS1 = balls_pallet.c bricks.c deflection.c save.c score.c stage.c \
- ! xblockbuster.c
- ! OBJS1 = balls_pallet.o bricks.o deflection.o save.o score.o stage.o \
- ! xblockbuster.o
- SRCS2 = stagemm.c
- OBJS2 = stagemm.o
- PROGRAMS = xblockbuster stagemm
- --- 26,35 ----
- DEFINES = -DSTAGEDIR=\"$(STAGEDIR)\"
- DEPLIBS = $(DEPXLIB)
- LOCAL_LIBRARIES = $(XLIB)
- ! SRCS1 = balls_pallet.c bricks.c deflection.c lock.c save.c score.c \
- ! stage.c xblockbuster.c
- ! OBJS1 = balls_pallet.o bricks.o deflection.o lock.o save.o score.o \
- ! stage.o xblockbuster.o
- SRCS2 = stagemm.c
- OBJS2 = stagemm.o
- PROGRAMS = xblockbuster stagemm
- Only in xblockbuster1.03: Makefile
- diff -c xblockbuster1.02/Makefile.noIm xblockbuster1.03/Makefile.noIm
- *** xblockbuster1.02/Makefile.noIm Sat Mar 20 03:11:41 1993
- --- xblockbuster1.03/Makefile.noIm Sat Apr 17 19:27:01 1993
- ***************
- *** 1,10 ****
- #
- # Makefile for XBlockbuster
- #
- ! HDRS= xblockbuster.h patchlevel.h
- ! SRCS = balls_pallet.c bricks.c deflection.c save.c score.c stage.c \
- xblockbuster.c
- ! OBJS = balls_pallet.o bricks.o deflection.o save.o score.o stage.o \
- xblockbuster.o
-
- # Where you want the executable installed
- --- 1,10 ----
- #
- # Makefile for XBlockbuster
- #
- ! HDRS= xblockbuster.h patchlevel.h lock.h
- ! SRCS = balls_pallet.c bricks.c deflection.c lock.c save.c score.c stage.c \
- xblockbuster.c
- ! OBJS = balls_pallet.o bricks.o deflection.o lock.o save.o score.o stage.o \
- xblockbuster.o
-
- # Where you want the executable installed
- diff -c xblockbuster1.02/README xblockbuster1.03/README
- *** xblockbuster1.02/README Tue Mar 30 20:19:06 1993
- --- xblockbuster1.03/README Sat Apr 17 19:33:05 1993
- ***************
- *** 97,110 ****
-
- BUGS/TODO:
-
- - I have gotten several reports of the pallette not appearing on the
- - screen, yet the balls are appearing (both use the gc_xor structure, so
- - I don't have any idea what the problem is, and can't reproduce it
- - myself.) This problem seems to be happening more on BW systems. My
- - only thought right now is perhaps the window wasn't made the proper size,
- - so the bottom is cut off. But even then, if the pointer is moved near
- - the top of the window, the side crosshairs should still appear.
- -
- A nice opening screen, showing the bricks (with proper coloring, if
- applicable), along with descriptions of what each brick does.
-
- --- 97,102 ----
- Common subdirectories: xblockbuster1.02/SKELS and xblockbuster1.03/SKELS
- Common subdirectories: xblockbuster1.02/STAGES and xblockbuster1.03/STAGES
- Common subdirectories: xblockbuster1.02/STAGES.try and xblockbuster1.03/STAGES.try
- Common subdirectories: xblockbuster1.02/STAGES.wacko and xblockbuster1.03/STAGES.wacko
- Common subdirectories: xblockbuster1.02/icons and xblockbuster1.03/icons
- Only in xblockbuster1.03: lock.c
- Only in xblockbuster1.03: lock.h
- diff -c xblockbuster1.02/patchlevel.h xblockbuster1.03/patchlevel.h
- *** xblockbuster1.02/patchlevel.h Fri Mar 26 01:21:39 1993
- --- xblockbuster1.03/patchlevel.h Sat Apr 17 19:39:55 1993
- ***************
- *** 1 ****
- ! #define VERSION "XBlockBuster 1.02"
- --- 1 ----
- ! #define VERSION "XBlockBuster 1.03"
- diff -c xblockbuster1.02/score.c xblockbuster1.03/score.c
- *** xblockbuster1.02/score.c Wed Mar 24 18:46:51 1993
- --- xblockbuster1.03/score.c Sat Apr 17 20:30:49 1993
- ***************
- *** 17,22 ****
- --- 17,23 ----
- */
-
- #include "xblockbuster.h"
- + #include "lock.h"
-
- struct Score {
- int score, balls_left;
- ***************
- *** 52,61 ****
- --- 53,74 ----
-
- /* read the score file into the array */
- sprintf( buf, SCOREFILE, playground );
- +
- + #ifdef LOCK_FILE
- + if (LockScoreFile(buf) == -1)
- + exit(1);
- + #endif
- +
- if ( !( fd = fopen(buf, "r+" ) ) ) {
- perror( "No score file" );
- exit( 1 );
- }
- +
- + #ifdef LOCK_FCNTL
- + if (LockFile(fileno(fd)) == -1)
- + exit(1);
- + #endif
- +
- for ( s = 0; s < NB_SCORES; s++ ) {
- fscanf( fd, "%d:%d:%s\n", &score_board[s].score,
- &score_board[s].balls_left,
- ***************
- *** 109,115 ****
- --- 122,137 ----
- score_board[s].login );
- }
- }
- +
- + #ifdef LOCK_FCNTL
- + UnlockFile(fileno(fd));
- + #endif
- +
- fclose( fd );
- +
- + #ifdef LOCK_FILE
- + UnlockScoreFile(buf);
- + #endif
-
- /* show score board */
- center_text( 0, "Top Scores" );
- Only in xblockbuster1.02: stagemm.o
- diff -c xblockbuster1.02/xblockbuster.c xblockbuster1.03/xblockbuster.c
- *** xblockbuster1.02/xblockbuster.c Wed Mar 31 19:27:01 1993
- --- xblockbuster1.03/xblockbuster.c Sat Apr 17 23:06:10 1993
- ***************
- *** 30,35 ****
- --- 30,40 ----
- static char *disp=NULL, *play="default";
- static int winposx=0, winposy=0,geomask,no_pause=FALSE;
-
- +
- + #ifdef Mips
- + #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
- + #endif
- +
- void event_handler()
- {
- XEvent e;
- diff -c xblockbuster1.02/xblockbuster.h xblockbuster1.03/xblockbuster.h
- *** xblockbuster1.02/xblockbuster.h Tue Mar 30 20:11:59 1993
- --- xblockbuster1.03/xblockbuster.h Sat Apr 17 20:47:36 1993
- ***************
- *** 20,25 ****
- --- 20,36 ----
- * SYSTEM DEPENDENT OPTIONS
- */
-
- + /* NOTE: only one of LOCK_FCTNL or LOCK_FILE should be defined. */
- + /* If neither are defined, no file locking will be done */
- +
- + /* Use fcntl to lock the scorefile */
- + #define LOCK_FCNTL
- + /* Use a different locking method for the score file. Maybe try it
- + if fcntl does not work. If you do use LOCK_FILE, the STAGES
- + directories themselves need to be publicly writable, as a lockfile
- + is written in them */
- + /*#define LOCK_FILE*/
- +
- /* STAGEDIR should, in general, be defined in the (I)Makefile */
- #ifndef STAGEDIR
- #define STAGEDIR "/usr/games/lib/blockbuster"
- diff -c xblockbuster1.02/xblockbuster.man xblockbuster1.03/xblockbuster.man
- *** xblockbuster1.02/xblockbuster.man Wed Mar 31 19:43:21 1993
- --- xblockbuster1.03/xblockbuster.man Sat Apr 17 19:33:47 1993
- ***************
- *** 283,287 ****
- the bricks it was unable to color. If using alternate bricks, it can be
- difficult to differentiate bricks without the coloring.
- .LP
- ! None of the standard command line X arguements are interperted. Likewise,
- ! none of the standard X defaults (in the .Xdefaults file) are used.
- --- 283,288 ----
- the bricks it was unable to color. If using alternate bricks, it can be
- difficult to differentiate bricks without the coloring.
- .LP
- ! Only a few of the standard command line X arguements are interperted.
- ! Likewise,
- ! only a few of the standard X defaults (in the .Xdefaults file) are used.
-